package com.rongke.doctor.constant;

/**
 * 医生端WEB API返回码
 * 
 * @author Administrator
 *
 */
public enum DoctorErrorCode {
	SUCCESS("00000", "success"),

	SESSION_TIME_OUT("00001", "session timeout"),

	USER_NOT_EXIST("00002", "user not exist"),

	NOT_VERIFIED_DOCTOR("00003", "not verified doctor"), // 查看审核历史时，查看非本人的审核记录

	INVALID_PARAM("00004", "invalid param"), // 入参无效，或者为空

	ADVICE_NOT_GENERATED("00005", "advice not generated"), // 治疗建议尚未生成

	ADVICE_VERIFIED("00006", "advice verified"), // 治疗建议已经被审核过了

	SYSTEM_ERROR("99999", "system error");

	private String errorCode;

	private String errorMsg;

	private DoctorErrorCode(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

}